home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.1
/
maze.1
< prev
next >
Wrap
Text File
|
1995-07-25
|
8KB
|
199 lines
XXXXSSSSccccrrrreeeeeeeennnnSSSSaaaavvvveeeerrrr((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((7777----mmmmaaaarrrr----99993333)))) XXXXSSSSccccrrrreeeeeeeennnnSSSSaaaavvvveeeerrrr((((1111))))
NNNNAAAAMMMMEEEE
maze - an automated X11 demo repeatedly creating and solving
a random maze
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
mmmmaaaazzzzeeee [-display _h_o_s_t:_d_i_s_p_l_a_y._s_c_r_e_e_n] [-foreground _c_o_l_o_r]
[-background _c_o_l_o_r] [-window] [-root] [-install] [-visual
_v_i_s_u_a_l] [-grid-size _p_i_x_e_l_s] [-live-color _c_o_l_o_r] [-dead-color
_c_o_l_o_r] [-solve-delay _u_s_e_c_s] [-pre-delay _u_s_e_c_s] [-post-delay
_u_s_e_c_s]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The _m_a_z_e program creates a "random" maze and then solves it
with graphical feedback.
OOOOPPPPTTTTIIIIOOOONNNNSSSS
_m_a_z_e accepts the following options:
----wwwwiiiinnnnddddoooowwww Draw on a newly-created window. This is the
default.
----rrrrooooooootttt Draw on the root window.
----iiiinnnnssssttttaaaallllllll
Install a private colormap for the window.
----vvvviiiissssuuuuaaaallll _v_i_s_u_a_l
Specify which visual to use. Legal values are the
name of a visual class, or the id number (decimal or
hex) of a specific visual.
----ggggrrrriiiidddd----ssssiiiizzzzeeee _p_i_x_e_l_s
The size of each block of the maze, in pixels;
default is 0, meaning pick a random grid size.
----lllliiiivvvveeee----ccccoooolllloooorrrr _c_o_l_o_r
The color of the path.
----ddddeeeeaaaadddd----ccccoooolllloooorrrr _c_o_l_o_r
The color of the failed path (it is also stippled
with a 50% pattern.)
----ssssoooollllvvvveeee----ddddeeeellllaaaayyyy _i_n_t_e_g_e_r
Delay (in microseconds) between each step of the
solution path. Default 5000, or about 1/200th
second.
----pppprrrreeee----ddddeeeellllaaaayyyy _i_n_t_e_g_e_r
Delay (in microseconds) between generating a maze
and starting to solve it. Default 2000000 (2
seconds.)
Page 1 (printed 6/30/95)
XXXXSSSSccccrrrreeeeeeeennnnSSSSaaaavvvveeeerrrr((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((7777----mmmmaaaarrrr----99993333)))) XXXXSSSSccccrrrreeeeeeeennnnSSSSaaaavvvveeeerrrr((((1111))))
----ppppoooosssstttt----ddddeeeellllaaaayyyy _i_n_t_e_g_e_r
Delay (in microseconds) after solving a maze and
before generating a new one. Default 4000000 (4
seconds.)
Clicking the mouse in the maze window controls it.
LLLLeeeeffffttttBBBBuuuuttttttttoooonnnn Clears the window and restarts maze.
MMMMiiiiddddddddlllleeeeBBBBuuuuttttttttoooonnnn Pause or unpause the program.
RRRRiiiigggghhhhttttBBBBuuuuttttttttoooonnnn Exit.
BBBBUUUUGGGGSSSS
Expose events force a restart of maze.
Mouse actions are based on "raw" values (Button1, Button2
and Button3) instead of using the pointer map.
EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
DDDDIIIISSSSPPPPLLLLAAAAYYYY to get the default host and display number.
XXXXEEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
to get the name of a resource file that overrides
the global resources stored in the RESOURCE_MANAGER
property.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
XXXX(1), xxxxssssccccrrrreeeeeeeennnnssssaaaavvvveeeerrrr(1)
CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
Copyright c 1988 by Sun Microsystems, Inc. Mountain View,
CA.
All Rights Reserved
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
documentation, and that the names of Sun or MIT not be used
in advertising or publicity pertaining to distribution of
the software without specific prior written permission. Sun
and M.I.T. make no representations about the suitability of
this software for any purpose. It is provided "as is"
without any express or implied warranty.
SUN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SUN BE
LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
Page 2 (printed 6/30/95)
XXXXSSSSccccrrrreeeeeeeennnnSSSSaaaavvvveeeerrrr((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((7777----mmmmaaaarrrr----99993333)))) XXXXSSSSccccrrrreeeeeeeennnnSSSSaaaavvvveeeerrrr((((1111))))
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
AAAAUUUUTTTTHHHHOOOORRRR((((ssss))))
Jim Randell [ XScreenSaver version ] jmr@mddjmr.fc.hp.com
HPLabs, Bristol
Richard Hess [ X11 extensions ] {...}!uunet!cimshop!rhess
Consilium, Mountain View, CA
Dave Lemke [ X11 version ] lemke@sun.COM
Sun MicroSystems, Mountain View, CA
Martin Weiss [ SunView version ]
Sun MicroSystems, Mountain View, CA
Page 3 (printed 6/30/95)